package org.learn.java.reflect;

import java.io.Serializable;

import org.learn.java.annotation.MyAnnotation;

@MyAnnotation(name = "field")
public class MyReflect implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public Long id = (long) 5;
	public String name;

	public Long getId() {
		return id;
	}

	public MyReflect() {

	}

	public MyReflect(Long id) {
		this.id = id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void say() {
		System.out.println("--say:reflect--");
	}

}
